package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 驾驶员管理对象 base_staff
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public class BaseStaff extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识，自增 */
    private String id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String staffName;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String staffLicense;

    /** 居住地址 */
    @Excel(name = "居住地址")
    private String staffAddress;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String staffPhone;

    /** 驾驶证号 */
    @Excel(name = "驾驶证号")
    private String staffCertificate;

    /** 企业唯一标识(PK) */
    private String compId;

    /** 企业名字 */
    @Excel(name = "企业名字")
    private String compName;

    /** 创建时间*/
    @Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 仅用于 JSON 序列化
    private Date createTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setStaffName(String staffName) 
    {
        this.staffName = staffName;
    }

    public String getStaffName() 
    {
        return staffName;
    }

    public void setStaffLicense(String staffLicense) 
    {
        this.staffLicense = staffLicense;
    }

    public String getStaffLicense() 
    {
        return staffLicense;
    }

    public void setStaffAddress(String staffAddress) 
    {
        this.staffAddress = staffAddress;
    }

    public String getStaffAddress() 
    {
        return staffAddress;
    }

    public void setStaffPhone(String staffPhone) 
    {
        this.staffPhone = staffPhone;
    }

    public String getStaffPhone() 
    {
        return staffPhone;
    }

    public void setStaffCertificate(String staffCertificate) 
    {
        this.staffCertificate = staffCertificate;
    }

    public String getStaffCertificate() 
    {
        return staffCertificate;
    }

    public void setCompId(String compId)
    {
        this.compId = compId;
    }

    public String getCompId()
    {
        return compId;
    }

    public void setCompName(String compName)
    {
        this.compName = compName;
    }

    public String getCompName()
    {
        return compName;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("staffName", getStaffName())
            .append("staffLicense", getStaffLicense())
            .append("staffAddress", getStaffAddress())
            .append("staffPhone", getStaffPhone())
            .append("staffCertificate", getStaffCertificate())
            .append("createTime", getCreateTime())
            .append("compId", getCompId())
            .append("compName", getCompName())
            .append("createTime", getCompName())
            .toString();
    }
}
